package com.clippick.history;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;

import co.kr.clippick.R;
import com.clippick.common.ImageLoader;
import com.clippick.database.DrawableManager;
import com.clippick.imageview.ImageViewTouch;

public class FullScreenImageViewer extends Activity {

	// common
	Context mContext;
	DrawableManager manager;

	// view
	ImageViewTouch imageViewTouch;

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.image_viewer);
		mContext = this;

		manager = new DrawableManager();

		// find view
		imageViewTouch = (ImageViewTouch) findViewById(R.id.image_viewer_image);
		imageViewTouch.setFitToScreen(true);

		if (getIntent() != null) {
			String path = getIntent().getExtras().getString("path");
			ImageLoader imageLoader = new ImageLoader(mContext);
			imageLoader.showImage(path, imageViewTouch, 1);
		}
	}
}
